Skip to content

Honour expose property of http-errors #138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

getsnoopy
Copy link

Description

This commit adds support for the expose property used by the
http-errors module, which allows developers to explicitly signal the
error message to be passed to the HTTP response for errors. This is
useful for certain errors (e.g., those with status code >=500) where the
original error message is otherwise suppressed by default.

Related issues

Checklist

  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style
    guide

This commit adds support for the "expose" property used by the
http-errors module, which allows developers to explicitly signal the
error message to be passed to the HTTP response for errors. This is
useful for certain errors (e.g., those with status code >=500) where the
original error message is otherwise suppressed by default.

Resolves: loopbackio#78
Signed-off-by: getsnoopy <[email protected]>
Copy link
Member

@dhmlau dhmlau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@getsnoopy, thanks for your contribution. Your changes LGTM.
However, I haven't been able to rebase your branch, so I've created PR #594 and add your authorship in there.

@dhmlau
Copy link
Member

dhmlau commented Aug 18, 2025

Closing in favor of PR #594.

@dhmlau dhmlau closed this Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants